import {request} from "./request";
// 报修列表
export const getOrderList = (data) => request({
    url: '/repair/list',
    data
})

// 工单详情
export const getOrderDetail = (data) => request({
    url: '/repair/detail',
    data
})

// 获取全部保修类型
export const getAllRepairType = (data) => request({
    url: '/repair/type/all_list',
    data
})

// 创建工单
export const createOrder = (data) => request({
    url: '/repair/create',
    data
})

// 修改工单
export const  updateOrder = (data) => request({
    url: '/repair/update',
    data
})
// 获取工单详情
export const getOrderInfo = (data) => request({
    url: '/repair/detail',
    data
})
// 获取房源列表
export const getHouseList = (data) => request({
    url: '/merchant/house_list',
    data
})

// 获取报修时间
export const getRepairTime = (data) => request({
    url: '/repair/timeList',
    data
})
// 取消工单
export const cancelOrder = (data) => request({
    url: '/repair/cancel',
    data
})